<template>
  <div class="openMembership">
    <div class="head">
      <span class="ligit">AI+权威知识库</span>
      <span>双驱动 你的需求它“更懂”！</span>
    </div>

    <div class="ktvip">
      <div class="left">激活数字教材/教参</div>
      <div class="right">解锁知识库权限</div>
    </div>

    <!-- 权益 -->
    <div class="interests">
      <div class="title">权益一</div>
      <div class="subtitle">AI深度学习平台教材、教参、题库等资源，输出内容更切合教学</div>
      <img :src="interests1" alt="" />
    </div>
    <div class="interests">
      <div class="title">权益二</div>
      <div class="subtitle">
        支持用户上传本地资源，AI读取并理解用户意图，输出内容更符合用户需要
      </div>
      <img :src="interests2" alt="" />
    </div>

    <!--  -->
    <div class="jsbtn">立即解锁</div>
  </div>
</template>

<script setup>
import interests1 from "@/assets/ai/interests1.png";
import interests2 from "@/assets/ai/interests2.png";
</script>

<style scoped lang="scss">
.openMembership {
  padding: 16px;
  height: calc(100% - 40px);
  background: rgba(255, 133, 0, 0.05);
  border-radius: 8px;
  width: 316px;
  box-sizing: border-box;
  margin: 20px 0;
  user-select: none;

  .head {
    font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
    font-weight: bold;
    font-size: 28px;
    line-height: 40px;
    text-align: left;
    font-style: normal;
    color: #312018;

    .ligit {
      color: #ff8500;
    }
  }

  .ktvip {
    width: 266px;
    height: 30px;
    border-radius: 15px;
    border: 1px solid #fc9e38;
    display: flex;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
    line-height: 20px;
    margin: 8px auto;

    .left {
      width: 144px;
      height: 30px;
      background: #fc9e38;
      border-radius: 15px 0px 0px 15px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .right {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      color: #fc9e38;
    }
  }

  .interests {
    margin-top: 24px;

    .title {
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      font-size: 14px;
      color: #312018;
      line-height: 20px;
    }

    .subtitle {
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 12px;
      color: #6a6a6a;
      line-height: 20px;
      margin-top: 4px;
    }

    img {
      width: 284px;
      height: 100px;
      margin: 8px 0;
    }
  }

  .jsbtn {
    width: 284px;
    height: 40px;
    background: #ff8500;
    border-radius: 20px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
    line-height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    cursor: pointer;
  }
}
</style>
